package com.jh.user.repository;

import com.jh.user.pojo.Data;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DataRepository extends
        JpaRepository<Data,String>,
        JpaSpecificationExecutor<Data>{

    List<Data> findByParentIdAndDataType(Long parentId, Integer dataType);

    List<Data> findByDataType(String DataType);


}
